Jon's Git Node
Commit 4d4e7073384d540f3d93eedc237e3e511483d122
Parents : b0d42c9
Author : Mark Qvist <bc7291552be7a58f361522990465165c>
Signature : T66BB85Valid, signed by author
Date : 2026-09-06T17:42:28+02:00
Fixed missing None check
Changes
Diff
diff --git a/nomadnet/ui/textui/Browser.py b/nomadnet/ui/textui/Browser.py
index 7487d48..b41fc65 100644
--- a/nomadnet/ui/textui/Browser.py
+++ b/nomadnet/ui/textui/Browser.py
@@ -787,7 +787,7 @@ class Browser:
image["link"] = existing_link
break
- if not image["link"] or image["link"].status == RNS.Link.CLOSED:
+ if not image["link"] or (image["link"] and image["link"].status) == RNS.Link.CLOSED:
RNS.log(f"Establishing link for image: {image_destination_hash} / {path}", RNS.LOG_DEBUG)
identity = RNS.Identity.recall(image_destination_hash)
destination = RNS.Destination(identity, RNS.Destination.OUT, RNS.Destination.SINGLE, self.app_name, self.aspects)
Served by rngit 1.5.4 - Generated in 0.05s